package com.fs.common.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fs.common.annotation.ColumnDesc;
import lombok.Data;

import java.util.Date;

/**
 * @author ACE
 * @desc 公用实体类
 * @creationTime 2019-03-30 15:00
 * @projectName weixinframe
 * @packageName com.fs.pojo
 */
@Data
public class IdEntity {
    @ColumnDesc(name = "主键")
    @TableId(type = IdType.UUID)
    public String id;

    @ColumnDesc(name = "创建时间")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date createTime = new Date();

    @ColumnDesc(name = "创建用户ID")
    public String createrId;
}
